package com.alogic.commonmark;

import com.anysoft.util.Properties;
import com.anysoft.util.Settings;
import org.commonmark.node.Node;
import org.commonmark.renderer.html.AttributeProvider;
import java.util.Map;

/**
 * 虚基类
 *
 * @since 1.6.13.11 [20200901 duanyy]
 */
public abstract class AbstractAttributeProvider implements AttributeProvider {
    @Override
    public void setAttributes(Node node, String tag, Map<String, String> map) {
        setAttribute(node,tag,map, Settings.get());
    }

    public abstract void setAttribute(Node node, String tag, Map<String,String> map, Properties ctx);
}
